package com.fira.edu.domain;

import com.fira.common.annotation.Excel;
import com.fira.common.constant.PatternConstants;
import com.fira.common.core.domain.saas.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 家长信息对象 edu_parent
 *
 * @author wuzhenggui
 * @date 2021-10-11
 */
public class EduParent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String id;

    /**
     * 家长称谓
     */
    @Excel(name = "家长称谓")
    private String parentName;

    /**
     * 家长手机号
     */
    @Excel(name = "家长手机号")
    @Size(min = 11, max = 11, message = "家长手机号必须是11位")
    @Pattern(regexp = PatternConstants.REGEX_MOBILE, message = "请输入11位正确家长手机号")
    private String parentPhone;

    /**
     * 家长微信号
     */
    @Excel(name = "家长微信号")
    @NotBlank(message = "家长微信号不能为空")
    private String parentWechat;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getParentWechat() {
        return parentWechat;
    }

    public void setParentWechat(String parentWechat) {
        this.parentWechat = parentWechat;
    }

    @Override
    public String toString() {

        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("parentName", getParentName()).append("parentPhone", getParentPhone()).append("parentWechat", getParentWechat()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).toString();
    }
}
